package com.yiwyn.service;

import com.yiwyn.annontation.ParamLog;
import com.yiwyn.util.Self;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import java.util.Map;

@Service
public class AService {

    private Self<AService> self;

    @ParamLog
    public String deal(Map data, String traceId) {


        // Self.me(this.getClass()).test(traceId);

        self.me.test(traceId);
        Object o = null;
        o.equals("123");

        return data.toString();
    }


    @ParamLog
    public String test(String a) {
        System.out.println("111111" + a);
        return null;
    }

    @PostConstruct
    private void init() {
        self = new Self<>(this);
    }

}
